package com.knowledge.plus.自定义注解.example1;

import com.knowledge.plus.自定义注解.example1.annotation.MyMethod;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author aFei
 * @since 2022/11/20
 */
@RestController
public class MyMethodController {

    /**
     * http://localhost:40001/get
     *
     * @return {@link String}
     */
    @GetMapping("get")
    @MyMethod(value = "tian")
    public String annotationMethod() {
        return "success";
    }

}
